package com.dries.portal.module.chat.utils;

import com.dries.portal.module.chat.service.IMsgService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.concurrent.Future;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/8/18 15:41
 */
@Component
public class MsgAsyncTesk {

    @Resource
    private IMsgService msgService;

    @Async
    public Future<Boolean> saveMessage() {

        // 保存消息
        // 清空临时缓存

        return new AsyncResult<>(true);
    }

}
